from tabulate import tabulate

data = [["1", "2"], ["3", "4"]]
print(tabulate(data, tablefmt="grid"))


from prettytable import PrettyTable
table = PrettyTable()
table.field_names = ["Column 1", "Column 2"]
table.add_row(["Data 1", "Data 2"])
print(table)